<html>
<head><meta charset="utf-8"><title>x.py test quick failure · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html">x.py test quick failure</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="190884914"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190884914" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190884914">(Mar 17 2020 at 17:37)</a>:</h4>
<p>I am currently running ./x.py test --stage 1 src/test/ui/ and want to quit on the first failing test. Is this possible?</p>
<p>rn it continues and only prints the errors once all tests are finished</p>



<a name="190886935"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190886935" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190886935">(Mar 17 2020 at 17:50)</a>:</h4>
<p>I'd love that, too. I don't think it exists</p>



<a name="190900442"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190900442" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190900442">(Mar 17 2020 at 19:36)</a>:</h4>
<p>(I saw this and said "wait, surely that's not true; surely we have a <code>--fail-fast</code> or <code>--max-errors</code> or <em>something</em> ... but from reviewing <code>compiletest --help</code>, it does not seem to exist...)</p>



<a name="190900551"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190900551" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190900551">(Mar 17 2020 at 19:37)</a>:</h4>
<p>turning <code>--quiet</code> mode off might help, at least in terms of letting you see for yourself which test is actually failling?</p>



<a name="190900868"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190900868" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190900868">(Mar 17 2020 at 19:40)</a>:</h4>
<p>Maybe a long sleep + bell sound + UI notification script to be executed -on-fail :)</p>



<a name="190900930"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190900930" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190900930">(Mar 17 2020 at 19:41)</a>:</h4>
<p>the <code>--on-fail</code> only works at the granularity of <code>x.py</code>'s tests, not within individual <code>compiletest</code> suites, right?</p>



<a name="190900978"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190900978" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190900978">(Mar 17 2020 at 19:41)</a>:</h4>
<p>(because <code>x.py</code> <strong>already</strong> fails fast by default; the problem is that the <code>src/test/ui</code> suite is huge.)</p>



<a name="190906309"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190906309" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190906309">(Mar 17 2020 at 20:26)</a>:</h4>
<p>I don't really know, <code>--on-fail</code> doesn't work locally for me</p>



<a name="190966334"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190966334" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190966334">(Mar 18 2020 at 11:18)</a>:</h4>
<p>you want to use <code>--pass check</code> btw when running UI tests; otherwise you're testing the runtime stuff as well</p>



<a name="190979138"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/190979138" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#190979138">(Mar 18 2020 at 13:29)</a>:</h4>
<p>thx</p>



<a name="240845741"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/240845741" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#240845741">(May 31 2021 at 15:23)</a>:</h4>
<p>Just ran into this. Is there at least a way to find out what test is failing without letting the whole thing run?</p>



<a name="240848537"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/x.py%20test%20quick%20failure/near/240848537" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/x.2Epy.20test.20quick.20failure.html#240848537">(May 31 2021 at 15:52)</a>:</h4>
<p>not ideal for that use case, but <a href="https://github.com/rust-lang/rust/blob/master/config.toml.example#L492-L493"><code>verbose-tests</code></a> will print each test's status as it runs them, one by one</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>